<!--
 * @Description: 盒子模型
 * @Author: zzj
 * @Date: 2021-08-17 09:11:16
 * @LastEditors: zzj
 * @LastEditTime: 2021-08-17 09:38:59
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型</title>
    <style>
        body{
            margin: 0;
        }
        .box{
            box-sizing: border-box;
            width: 100px;
            height: 100px;
            background-color: antiquewhite;

            margin-top: 10px;

            padding-top: 10px;
            padding-left: 10px;
            padding-right: 10px;

            border: 10px dashed deeppink;
        }
    </style>
</head>
<body>
    <div class="box">盒子1</div>
    <div class="box">盒子2</div>
</body>
</html>